home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / tutorials / custEducation / opengl2 / include / auxDevice.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  9.5 KB  |  268 lines

  1. /*
  2.  * Copyright 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17.  
  18.  
  19. /**************************************************************************
  20.  *    Event Devices
  21.  **************************************************************************/
  22.  
  23. #define AUX_EVENT_MASK            0x0100
  24.  
  25. #define AUX_EXPOSE                ( AUX_EVENT_MASK + 1 )
  26. #define AUX_CONFIG                ( AUX_EVENT_MASK + 2 )
  27. #define AUX_DRAW                  ( AUX_EVENT_MASK + 3 )
  28. #define AUX_KEYEVENT              ( AUX_EVENT_MASK + 4 )
  29. #define AUX_MOUSEDOWN             ( AUX_EVENT_MASK + 5 )
  30. #define AUX_MOUSEUP               ( AUX_EVENT_MASK + 6 )
  31. #define AUX_MOUSELOC              ( AUX_EVENT_MASK + 7 )
  32. #define AUX_INPUTCHANGE           ( AUX_EVENT_MASK + 8 )
  33.  
  34. #define AUX_REDRAW                AUX_EXPOSE
  35.  
  36. #define AUX_NOEVENT               MINUS_ONE
  37.  
  38. /**************************************************************************
  39.  *    Mouse button devices
  40.  **************************************************************************/
  41.  
  42. #define AUX_BUTTON_MASK           0x0200
  43.  
  44. #define AUX_LEFTBUTTON            ( AUX_BUTTON_MASK + 0 )
  45. #define AUX_MIDDLEBUTTON          ( AUX_BUTTON_MASK + 1 )
  46. #define AUX_RIGHTBUTTON           ( AUX_BUTTON_MASK + 2 )
  47.  
  48.  
  49. /**************************************************************************
  50.  *    Modifier key devices
  51.  **************************************************************************/
  52.  
  53. #define AUX_SHIFT                 1
  54. #define AUX_CONTROL               2
  55. #define AUX_ALT                   3
  56.  
  57.  
  58. /**************************************************************************
  59.  *    Keyboard key devices
  60.  **************************************************************************/
  61.  
  62. /* Numbers */
  63.  
  64. #define AUX_0                     XK_0
  65. #define AUX_1                     XK_1
  66. #define AUX_2                     XK_2
  67. #define AUX_3                     XK_3
  68. #define AUX_4                     XK_4
  69. #define AUX_5                     XK_5
  70. #define AUX_6                     XK_6
  71. #define AUX_7                     XK_7
  72. #define AUX_8                     XK_8
  73. #define AUX_9                     XK_9
  74.  
  75. #define AUX_ZERO                  XK_0
  76. #define AUX_ONE                   XK_1
  77. #define AUX_TWO                   XK_2
  78. #define AUX_THREE                 XK_3
  79. #define AUX_FOUR                  XK_4
  80. #define AUX_FIVE                  XK_5
  81. #define AUX_SIX                   XK_6
  82. #define AUX_SEVEN                 XK_7
  83. #define AUX_EIGHT                 XK_8
  84. #define AUX_NINE                  XK_9
  85.  
  86.  
  87. /* Letters */
  88.  
  89. #define AUX_A                     XK_A
  90. #define AUX_B                     XK_B
  91. #define AUX_C                     XK_C
  92. #define AUX_D                     XK_D
  93. #define AUX_E                     XK_E
  94. #define AUX_F                     XK_F
  95. #define AUX_G                     XK_G
  96. #define AUX_H                     XK_H
  97. #define AUX_I                     XK_I
  98. #define AUX_J                     XK_J
  99. #define AUX_K                     XK_K
  100. #define AUX_L                     XK_L
  101. #define AUX_M                     XK_M
  102. #define AUX_N                     XK_N
  103. #define AUX_O                     XK_O
  104. #define AUX_P                     XK_P
  105. #define AUX_Q                     XK_Q
  106. #define AUX_R                     XK_R
  107. #define AUX_S                     XK_S
  108. #define AUX_T                     XK_T
  109. #define AUX_U                     XK_U
  110. #define AUX_V                     XK_V
  111. #define AUX_W                     XK_W
  112. #define AUX_X                     XK_X
  113. #define AUX_Y                     XK_Y
  114. #define AUX_Z                     XK_Z
  115.  
  116. #define AUX_a                     XK_a
  117. #define AUX_b                     XK_b
  118. #define AUX_c                     XK_c
  119. #define AUX_d                     XK_d
  120. #define AUX_e                     XK_e
  121. #define AUX_f                     XK_f
  122. #define AUX_g                     XK_g
  123. #define AUX_h                     XK_h
  124. #define AUX_i                     XK_i
  125. #define AUX_j                     XK_j
  126. #define AUX_k                     XK_k
  127. #define AUX_l                     XK_l
  128. #define AUX_m                     XK_m
  129. #define AUX_n                     XK_n
  130. #define AUX_o                     XK_o
  131. #define AUX_p                     XK_p
  132. #define AUX_q                     XK_q
  133. #define AUX_r                     XK_r
  134. #define AUX_s                     XK_s
  135. #define AUX_t                     XK_t
  136. #define AUX_u                     XK_u
  137. #define AUX_v                     XK_v
  138. #define AUX_w                     XK_w
  139. #define AUX_x                     XK_x
  140. #define AUX_y                     XK_y
  141. #define AUX_z                     XK_z
  142.  
  143.  
  144. /* Misc. keys */
  145.  
  146. #define AUX_RETURN                XK_Return
  147. #define AUX_ESCAPE                XK_Escape
  148. #define AUX_SPACE                 XK_space
  149. #define AUX_BACKSPACE             XK_BackSpace
  150. #define AUX_TAB                   XK_Tab
  151. #define AUX_LEFT                  XK_Left
  152. #define AUX_UP                    XK_Up
  153. #define AUX_RIGHT                 XK_Right
  154. #define AUX_DOWN                  XK_Down
  155.  
  156.  
  157. /* Function Keys */
  158.  
  159. #define AUX_F1                    XK_F1
  160. #define AUX_F2                    XK_F2
  161. #define AUX_F3                    XK_F3
  162. #define AUX_F4                    XK_F4
  163. #define AUX_F5                    XK_F5
  164. #define AUX_F6                    XK_F6
  165. #define AUX_F7                    XK_F7
  166. #define AUX_F8                    XK_F8
  167. #define AUX_F9                    XK_F9
  168. #define AUX_F10                   XK_F10
  169. #define AUX_F11                   XK_F11
  170. #define AUX_F12                   XK_F12
  171.  
  172.  
  173. /* Keypad Numbers */
  174.  
  175. #define AUX_KP_0                  XK_KP_0
  176. #define AUX_KP_1                  XK_KP_1
  177. #define AUX_KP_2                  XK_KP_2
  178. #define AUX_KP_3                  XK_KP_3
  179. #define AUX_KP_4                  XK_KP_4
  180. #define AUX_KP_5                  XK_KP_5
  181. #define AUX_KP_6                  XK_KP_6
  182. #define AUX_KP_7                  XK_KP_7
  183. #define AUX_KP_8                  XK_KP_8
  184. #define AUX_KP_9                  XK_KP_9
  185.  
  186.  
  187. /* Keypad Keys */
  188.  
  189. #define AUX_KP_ENTER              XK_KP_Enter
  190. #define AUX_KP_MULTIPLY           XK_KP_Multiply
  191. #define AUX_KP_ADD                XK_KP_Add
  192. #define AUX_KP_SUBTRACT           XK_KP_Subtract
  193. #define AUX_KP_DECIMAL            XK_KP_Decimal
  194. #define AUX_KP_DIVIDE             XK_KP_Divide
  195. #define AUX_KP_HOME               XK_KP_Home
  196. #define AUX_KP_LEFT               XK_KP_Left
  197. #define AUX_KP_UP                 XK_KP_Up
  198. #define AUX_KP_RIGHT              XK_KP_Right
  199. #define AUX_KP_DOWN               XK_KP_Down
  200. #define AUX_KP_PRIOR              XK_KP_Prior
  201. #define AUX_KP_NEXT               XK_KP_Next
  202. #define AUX_KP_END                XK_KP_End
  203. #define AUX_KP_BEGIN              XK_KP_Begin
  204. #define AUX_KP_INSERT             XK_KP_Insert
  205. #define AUX_KP_DELETE             XK_KP_Delete
  206.   
  207.  
  208. /* Shifted Characters */
  209.  
  210. #define AUX_TILDE                 XK_asciitilde
  211. #define AUX_EXCLAMATION           XK_exclam
  212. #define AUX_AT_SIGN               XK_at
  213. #define AUX_POUND_SIGN            XK_numbersign
  214. #define AUX_DOLLAR_SIGN           XK_dollar
  215. #define AUX_PERCENT               XK_percent
  216. #define AUX_ASCIICIRCUM           XK_asciicircum
  217. #define AUX_AMPERSAND             XK_ampersand
  218. #define AUX_ASTERISK              XK_asterisk
  219. #define AUX_PARENLEFT             XK_parenleft
  220. #define AUX_PARENRIGHT            XK_parenright
  221. #define AUX_BAR                   XK_bar
  222. #define AUX_PLUS                  XK_plus
  223. #define AUX_APOSTROPHE            XK_apostrophe
  224. #define AUX_DOUBLE_QUOTE          XK_quotedbl
  225. #define AUX_QUOTELEFT             XK_quoteleft
  226. #define AUX_QUOTERIGHT            XK_quoteright
  227. #define AUX_BRACELEFT             XK_braceleft
  228. #define AUX_BRACERIGHT            XK_braceright
  229. #define AUX_BRACKETLEFT           XK_bracketleft
  230. #define AUX_BRACKETRIGHT          XK_bracketright
  231. #define AUX_COMMA                 XK_comma
  232. #define AUX_MINUS                 XK_minus
  233. #define AUX_PERIOD                XK_period
  234. #define AUX_SLASH                 XK_slash
  235. #define AUX_COLON                 XK_colon
  236. #define AUX_SEMICOLON             XK_semicolon
  237. #define AUX_LESS                  XK_less
  238. #define AUX_EQUAL                 XK_equal
  239. #define AUX_GREATER               XK_greater
  240. #define AUX_QUESTION              XK_question
  241. #define AUX_BACKSLASH             XK_backslash
  242. #define AUX_UNDERSCORE            XK_underscore
  243. #define AUX_GRAVE_QUOTE           XK_grave
  244.   
  245. #define AUX_PAUSE                 XK_Pause
  246. #define AUX_SCROLL_lOCK           XK_Scroll_Lock
  247.   
  248. #define AUX_DELETE                XK_Delete
  249.   
  250. #define AUX_HOME                  XK_Home
  251. #define AUX_END                   XK_End
  252.   
  253. #define AUX_SYS_REQ               XK_Sys_Req
  254. #define AUX_CAPS_LOCK             XK_Caps_Lock
  255. #define AUX_SHIFT_LOCK            XK_Shift_Lock
  256.   
  257.  
  258. /* Modifier Keys */
  259.  
  260. #define AUX_SHIFT_L               XK_Shift_L
  261. #define AUX_SHIFT_R               XK_Shift_R
  262. #define AUX_CONTROL_L             XK_Control_L
  263. #define AUX_CONTROL_R             XK_Control_R
  264. #define AUX_META_L                XK_Meta_L
  265. #define AUX_META_R                XK_Meta_R
  266. #define AUX_ALT_L                 XK_Alt_L
  267. #define AUX_ALT_R                 XK_Alt_R
  268.